#include "slist.h"
#define _CRT_SECURE_NO_WARNINGS 1
int main()
{
	SListNode* plist = NULL;
	SListPushFront(&plist, 1);
	SListPushFront(&plist, 2);
	SListPushFront(&plist, 3);
	SListPushFront(&plist, 4);
	SListPushFront(&plist, 5);
	SListPushFront(&plist, 6);
	SListPrint(plist);
	SListNode* pod = SListFind(plist, 4);
	SListInsertAfter(pod, 2);
	SListPrint(plist);
	SListNode* pos = SListFind(plist, 3);
	SListErase(&plist, pos);
	SListPrint(plist);
	SListDestroy(plist);
	return 0;
}

